<template>
    <div>
        <projectCheckTree class="fr" :projectTreeData="projectTreeData" @getProject="getProject" />
    </div>
</template>

<script>
import projectCheckTree from '@/components/projectCheckTree';
export default {
    components: {
        projectCheckTree
    },
    data() {
        return {
            projectTreeData: [],
            projectInfo: {}
        }        
    },
    mounted() {
        this.getTreeData();
    },
    methods: {
        // 获取楼盘项目树
        getTreeData () {
            // this.$Geting(this.$api.getCancelOrgProjectTree).then((res) => {
            //     if (res.code === '0') {
            //         let resData = res.data.treeData || {};
            //         this.projectTreeData = [{...resData}];
            //     }
            // });
            this.$Geting('syorgTree.json').then((res) => {
                if (res.code === '0') {
                    let resData = res.data.treeData || {};
                    this.projectTreeData = [{...resData}];
                }
            });
        },
        // 获取选中的楼盘项目
        getProject (projectInfo) {
            this.projectInfo = projectInfo;
            // this.customerTablePageQuery();
        },
    }
}
</script>

<style lang="scss" scoped>

</style>